import { get,post } from '../request';
import {BuildingType} from "./type"
// 列表
const buildingList = (data: any) => {
  return get('building/list', data);
};
// 添加
const buildingAdd = (data: BuildingType) => {
  return post('building/add', data);
};
// 删除
const buildingDel = (id:number)=>{
  return get("building/delete",{id})
}
export { buildingList ,buildingAdd,buildingDel};
